package com.zyx.pulsardemo.functions.intro;

import java.util.function.Function;

/**
 * @author Yaxi.Zhang
 * @since 2021/10/8 17:57
 * desc: Function接口案例 ==> 将输入的字符串添加惊叹号后返回
 */
public class ExclamationFunction implements Function<String, String> {
    @Override
    public String apply(String input) {
        return String.format("%s!", input);
    }
}
